//package siyuan.run.ribbon.config;
//
//import com.netflix.loadbalancer.IRule;
//import com.netflix.loadbalancer.RandomRule;
//import org.springframework.cloud.netflix.ribbon.RibbonClient;
//import org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @program: sy
// * @description: Ribbon 配置类
// * @author: Jacob
// * @create: 2020-11-24 20:02
// **/
//@Configuration
//@RibbonClient(name = "provider",configuration = RibbonClientConfiguration.class)
//public class RibbonConfig {
//
//    /*
//    * 负债均衡策略:使用随机策略(RandomRule)
//    * */
//    @Bean
//    public IRule iRule(){
//        return new RandomRule();
//    }
//
//}
